#!/bin/sh
D=$(cd "$(dirname "$0")/.." && pwd)
: "${ZIG_GLOBAL_CACHE_DIR:=$D/cache}"; export ZIG_GLOBAL_CACHE_DIR
L=$(mktemp -d "${TMPDIR:-/tmp}/nativ-zig.XXXXXX") || exit 1
ZIG_LOCAL_CACHE_DIR=$L "$D/zig/zig" cc -target x86_64-linux-gnu.2.28 "$@"; r=$?; rm -rf "$L"; exit $r
